xend: fix hotplug for integrated devices
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:29:53 +0000 (11:29 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:29:53 +0000 (11:29 +0100)
commite32808cc9cdd1527fc46c0c895848ccc661d1945
tree04f5ff292b3c5553eb045ea95a1d8f8cfa027bd0
parentd81fe9d33ad54cbe132c9c2852be4bd10b17674f
xend: fix hotplug for integrated devices

For integrated devices(with bus number 0), self.find_parent() returns
None, causing a python exception here.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/python/xen/util/pci.py